package com.nyist.diseasepreventionserver.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/*
*
* 用来进行表单验证
* */
@Data
public class UserForm {
    //学号
    @NotNull(message = "学号必填")
    private Integer userSid;
    //用户名
    @NotEmpty(message = "用户名必填")
    private String userName;
    //密码
    @NotEmpty(message = "密码必填")
    private String userPassword;
    //姓名
    @NotEmpty(message = "姓名必填")
    private String name;
    //联系方式
    @NotEmpty(message = "联系方式必填")
    private String phone;
}
